package com.woniuxy.dudugua.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Order implements Serializable {
    private Integer id;

    /**
    * 用户id
    */
    private Integer userId;

    /**
    * 优惠券id(如果是0表示没使用优惠券，如果是非0表示用了优惠券)
    */
    private Integer couponId;

    /**
    * 订单总价 包括本次订单所有商品
    */
    private Double total;

    /**
    * 订单生成时间
    */
    private Date addTime;

    /**
    * 订单状态(1:未付款、2：已付款、3：待收货、4：待评价、5：已取消)
    */
    private Integer status;

    /**
    * 发货地址
    */
    private String address;

    /**
     * 添加一个orderInfo对象
     * @return
     */
    private List<OrderInfo> orderInfos;

    /**
     * 添加一个优惠券规则对象
     */
    private CouponRule couponRule;

    public CouponRule getCouponRule() {
        return couponRule;
    }

    public void setCouponRule(CouponRule couponRule) {
        this.couponRule = couponRule;
    }

    public List<OrderInfo> getOrderInfos() {
        return orderInfos;
    }

    public void setOrderInfos(List<OrderInfo> orderInfos) {
        this.orderInfos = orderInfos;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getCouponId() {
        return couponId;
    }

    public void setCouponId(Integer couponId) {
        this.couponId = couponId;
    }

    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}